We follow the ambipolar-diffusion--driven formation and evolution of a fragment in a magnetically supported molecular cloud, until a hydrostatic protostellar core forms at its center. This problem was formulated in Paper I. We determine the density, velocity and magnetic field as functions of space and time, and the contribution of ambipolar diffusion and Ohmic dissipation to the resolution of the magnetic flux problem of star formation. The issue of whether the magnetic field ever decouples from the (neutral) matter is also addressed. We also find that the electrons do not decouple from the field lines before thermal ionization becomes important and recouples the magnetic field to the neutral matter. Ohmic dissipation becomes more effective than ambipolar diffusion as a flux reduction mechanism only at the highest densities (a few times 10^12 particles per cubic cm). In the high-density central parts of the core, the magnetic field acquires an almost spatially uniform structure, with a value that, at the end of the calculation (number density ~ 5 times 10^14 particles per cubic cm), is found to be in excellent agreement with meteoritic measurements of magnetic fields in the protosolar nebula. Outside the hydrostatic protostellar core, a concentration of magnetic flux (a "magnetic wall") forms, which gives rise to a magnetic shock. This magnetic shock is the precursor of the repeated shocks found by Tassis & Mouschovias (2005) which cause spasmodic accretion onto the hydrostatic core at later times.